<?php

namespace App\Console\Commands;

use Illuminate\Console\Command;
use App\Models\Tag;
class CreateHotTags extends Command
{
    /**
     * The name and signature of the console command.
     *
     * @var string
     */
    protected $signature = 'tx:create-hot-tags';

    /**
     * The console command description.
     *
     * @var string
     */
    protected $description = '生成热门标签';

    /**
     * Create a new command instance.
     *
     * @return void
     */
    public function __construct()
    {
        parent::__construct();
    }

    /**
     * Execute the console command.
     *
     * @return mixed
     */
    public function handle(Tag $tag)
    {
        $tag->calculateHotTags();
    }
}
